
<div class="title">
    <h2><?= lang('checkout.booking.summary') ?></h2>
</div>

<div class="search-list cart-list clearfix">

    <div class="car-box">
        <?
            $href = base_url('rentacar/'.urlify::filter($car->name).'-'.$car->id);
            $filename = get_thumbnail(132,87,$car->f_name)
        ?>
        <a href="<?=$href?>"> <img src="<?=$hosting?>pro-gallery/<?=$car->g_path.'/'.$filename?>" alt=""> </a>
        <a href="<?=base_url('rentacar/available_fleet');?>" class="change-car"><?= lang('rentacar.change.car') ?> »</a>
        <div class="details">
            <div class="star-rating-box">
                <? $this->load->view('rentacar/parts/rating',array('no'=>1,'score'=>round($car->score/2))); ?>
            </div>

            <? 
                $pices = explode(" ",$car->name);
            ?>
            <h3><a href="<?=$href?>"><?=$pices[0]?><span><?
                            for($j=1;$j<=count($pices)-1;$j++){
                                echo ' '.$pices[$j];
                            }
                    ?></span></a></h3>

            <p class='description-checkout'><?=clean_html($car->description)?></p>

            <!--CART OPTIONS - CAR-->
            <ul class="cart-options clearfix">
                <li><h5><?=$this->booking_session->get('day_price')?>€ <span>/<?= lang('rentacar.day') ?></span></h5></li>
                <li><span class="capitalize"><?= lang('rentacar.days') ?></span>: <b><?=$this->booking_session->get('no_days')?></b></li>
                <!--<li><a href="#" class="remove-button">remove</a></li>-->
            </ul>
            <big><?=$this->booking_session->get('day_price')*$this->booking_session->get('no_days')?>€</big>


            <? if($this->booking_session->get('pickup_loc_value')>0 || $this->booking_session->get('return_loc_value')>0): ?>
            <h4><?= lang('rentacar.locations') ?></h4>
                <ul class="bonus-options">


                    <!--CART OPTIONS - PICKUP LOCATION-->
                    <? if($this->booking_session->get('pickup_loc_value')>0): 
                            $this->load->view('rentacar/parts/checkout_list_item_location',array('desc'=>lang('rentacar.pickup'),'text'=>$this->booking_session->get('pickup_loc_text')." +".$this->booking_session->get('pickup_loc_value')." &euro;"));
                            endif; ?>

                    <!--CART OPTIONS - RETURN LOCATION-->
                    <? if($this->booking_session->get('return_loc_value')>0): 
                            $this->load->view('rentacar/parts/checkout_list_item_location',array('desc'=>lang('rentacar.return'),'text'=>$this->booking_session->get('return_loc_text')." +".$this->booking_session->get('return_loc_value')." &euro;"));
                            endif; ?>            
                </ul>

                <? endif; ?>

            <? if(isset($accessories)): ?>
            <h4><?= lang('rentacar.bonus.equipment') ?></h4>

                <ul class="bonus-options" id="extras_html">
                    <?=$extras_html?>
                </ul>

            <a href="#" class="add-button" id="add_bonus_equipment"><?= lang('rentacar.add.bonus.equipment') ?></a>
                <? endif; ?>


        </div>
    </div><!-- / Item 1 -->

    <h5 class="total"><?= lang('rentacar.total') ?>: <span id="final_price"><?=$this->booking_session->get('tot_price')?>€</span></h5>

    <div class="buttons-cart">
        <!--<a href="#">Change details »</a>-->
        <input type="submit" value="<?= lang('checkout.next') ?> »" class="checkout_1_button">
    </div>

</div><!-- / Three Columns -->